package cn.xopencode.userservice.rpc.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 根据ID更改指定的属性
 *
 * @Author xiaodawei
 * @since 2021/9/17
 */
@Data
@Accessors(chain = true)
@ApiModel("用户更新属性")
public class UpdatePropertyDTO implements Serializable {


    @NotBlank(message = "主键不能为空")
    @ApiModelProperty(value = "主键", required = true)
    private String id;

    @ApiModelProperty(value = "当前登陆用户的ID", hidden = true)
    private String userId;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "现任职务")
    private String positionId;

    @ApiModelProperty(value = "所属部门")
    private String deptId;

    @ApiModelProperty(value = "状态：1：启用 2：禁用")
    private String status;

    @ApiModelProperty(value = "删除标识：1：未删除；2：已删除")
    private String isDeleted;

}
